import { FC } from 'react';
import ReactMarkDown from 'react-markdown';
import gfm from 'remark-gfm';

// markdown格式转换
export const MarkDown: FC<{ markdown: string }> = (props) => {
  const { markdown } = props;
  return (
    <>
      <ReactMarkDown remarkPlugins={[gfm]}>{markdown}</ReactMarkDown>
    </>
  );
};
